package com.haimi.shiguang.application;

import android.app.Application;

import com.haimi.shiguang.R;
import com.haimi.shiguang.framework.Config;
import com.haimi.shiguang.framework.Environment;
import com.haimi.shiguang.framework.GlobalCache;
import com.haimi.shiguang.utils.StringUtil;

/**
 * @author changsunhaipeng
 * @date 2018/6/3
 */

public class ShiGuangApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Config.changeEnv(StringUtil.toInt(getString(R.string.meta_env), Environment.PRODUCT));
        GlobalCache.getInstance().registerContext(this);
    }
}
